package com.chuangyang.fixboxmaster.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.chuangyang.fixboxmaster.utils.PrefUtils;
import com.umeng.update.UmengUpdateAgent;

public class StartActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        UmengUpdateAgent.update(this);
        if (PrefUtils.getString(PrefUtils.ACCESS_TOKEN) != null) {
            startActivity(new Intent(this, MainActivity.class));
        } else {
            startActivity(new Intent(this, LoginActivity.class));
        }
        finish();
    }
}
